import '@/assets/styles/scss/main.scss'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
//eCharts导入与使用
//引入eCharts
import * as echarts from 'echarts'
//引入vue-eCharts组件
import VueECharts from 'vue-echarts'
//DataV基于eCharts的可视化封装组件
// import DataV, { setClassNamePrefix } from '@dataview/datav-vue3';
import dataV from '@jiaminghi/data-view'

//app实例创建于挂载
const app = createApp(App)
app.use(createPinia())
app.use(router)
app.component('v-chart',VueECharts)
// app.use(dataV)
app.use(dataV, { classNamePrefix: 'dv-' });
app.mount('#app')
